package spring.yongongsystem.service;

import spring.yongongsystem.POJO.dto.OrderPageQueryDTO;
import spring.yongongsystem.POJO.entity.Order;
import spring.yongongsystem.result.PageResult;

public interface OrderService {
    /**
     * 订单分页查询
     * @param orderPageQueryDTO
     * @return
     */
    PageResult pageQuery(OrderPageQueryDTO orderPageQueryDTO);

    /**
     * 新增订单
     * @param order
     */
    void save(Order order);

    /**
     * 删除订单
     * @param id
     */
    void deleteById(Long id);
}
